<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>AI 导航 - 精选优质AI工具集合</title>
    <meta name="description" content="精选AI工具导航：聊天机器人、图像生成、写作助手、生产力与研究工具，支持分类与搜索。现代化玻璃拟态设计，粒子动画背景。" />
    <meta name="keywords" content="AI工具,人工智能,ChatGPT,Midjourney,AI导航,工具集合" />
    
    <!-- Open Graph -->
    <meta property="og:title" content="AI 导航 - 精选优质AI工具集合" />
    <meta property="og:description" content="精选AI工具导航，现代化设计，助力创作与工作效率提升" />
    <meta property="og:type" content="website" />
    
    <!-- 预加载关键资源 -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    
    <!-- 性能优化 -->
    <link rel="dns-prefetch" href="//chat.openai.com">
    <link rel="dns-prefetch" href="//www.midjourney.com">
    
    <style>
      /* 初始加载动画 */
      #loading {
        position: fixed;
        inset: 0;
        background: linear-gradient(135deg, #0f172a, #1e293b);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        transition: opacity 0.5s ease-out;
      }
      
      .loading-spinner {
        width: 50px;
        height: 50px;
        border: 3px solid rgba(59, 130, 246, 0.3);
        border-top: 3px solid #3b82f6;
        border-radius: 50%;
        animation: spin 1s linear infinite;
      }
      
      @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
      }
      
      /* 防止初始闪烁 */
      body {
        margin: 0;
        background: linear-gradient(135deg, #0f172a, #1e293b);
        overflow: hidden;
      }
      
      #root {
        opacity: 0;
        transition: opacity 0.5s ease-in;
      }
      
      .loaded #root {
        opacity: 1;
      }
      
      .loaded #loading {
        opacity: 0;
        pointer-events: none;
      }
      
      .loaded body {
        overflow: auto !important;
      }
    </style>
  </head>
  <body>
    <!-- 加载动画 -->
    <div id="loading">
      <div class="loading-spinner"></div>
    </div>
    
    <div id="root"></div>
    
    <script type="module" src="/src/main.tsx"></script>
    
    <script>
      // 页面加载完成后移除加载动画
      window.addEventListener('load', () => {
        setTimeout(() => {
          document.body.classList.add('loaded');
          setTimeout(() => {
            document.getElementById('loading')?.remove();
          }, 500);
        }, 1000);
      });
    </script>
  </body>
</html>